#include "Stack.h"
#include "Queue.h"
void StackTest()
{
	/*Stack st;
	StackInit(&st);
	StackPush(&st,3);
	StackPush(&st,4);
	StackPush(&st,5);
	for (int i = 0; i < StackSize(&st); i++)
	{
		int num = 0;
		num = st._a[i];
		std::cout << num << std::endl;
	}*/
	Stack st;

	StackInit(&st);

	StackPush(&st, 1);

	StackPush(&st, 2);

	StackPush(&st, 3);

	printf("%d\n", StackTop(&st));

	StackPop(&st);

	printf("%d\n", StackTop(&st));

	StackPush(&st, 4);

	StackPush(&st, 5);

	StackPush(&st, 6);

	printf("%d\n", StackTop(&st));

	StackDestory(&st);
}

void QueueTest()
{
	Queue qu;
	QueueInit(&qu);
	QueuePush(&qu, 1);

	QueuePush(&qu, 2);

	QueuePush(&qu, 3);

	printf("%d\n",QueueSize(&qu));

	QueuePop(&qu);

	printf("%d\n",QueueSize(&qu));

	QueueDestroy(&qu);
}
int main()
{
	StackTest();
	std::cout << std::endl;
	QueueTest();
}